/*
 * Copyright © 2004-2014 chenYuan. All rights reserved.
 * @Website:wwww.jspx.net
 * @Mail:39793751@qq.com
 * @author: chenYuan , 陈原
 * @License: Jspx.net Framework Code is open source (LGPL)，Jspx.net Framework 使用LGPL 开源授权协议发布。
 * @jvm:jdk1.6+  x86/amd64
 *
 */
package com.jspx.txweb.table;

import com.jspx.sober.annotation.IDType;
import com.jspx.sober.annotation.Id;
import com.jspx.sober.annotation.Column;
import com.jspx.sober.annotation.Table;
import com.jspx.sober.table.OperateTable;
import com.jspx.utils.StringUtil;

/**
 * Created by IntelliJ IDEA.
 * User:chenYuan (mail:39793751@qq.com)
 * Date: 2005-4-13
 * Time: 10:44:41
 */

@Table(name = "jspx_member_tree", caption = "栏目权限",cache = true)
public class MemberTree extends OperateTable
{
    @Id(auto = true, type = IDType.serial)
    @Column(caption = "ID", notNull = true)
    private long id = 0;

    @Column(caption = "栏目ID", length = 50, notNull = true)
    private String nodeId = StringUtil.empty;

    @Column(caption = "用户ID", length = 50, notNull = true)
    private long uid = 0;

    @Column(caption = "树名", length = 50, notNull = true)
    private String namespace = StringUtil.empty;

    public MemberTree()
    {

    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getNodeId()
    {
        return nodeId;
    }

    public void setNodeId(String nodeId)
    {
        this.nodeId = nodeId;
    }

    public String getNamespace()
    {
        return namespace;
    }

    public void setNamespace(String namespace)
    {
        this.namespace = namespace;
    }

    public long getUid() {
        return uid;
    }

    public void setUid(long uid) {
        this.uid = uid;
    }
}